/**
 * @Author lizelong
 * @ClassName java.ServletTest
 * @Date 2021/5/26 14:06
 * @Version V1.0
 * Description  <请输入一句话描述该类功能>
 * Copyright (C) 北京中电兴发科技有限公司  since 2021/5/26
 */
public class ServletTest {
    public static void main(String[] args) {

        SayHello say = new DogSayHello();
        say.sayHello();

        DogSayHello dogSayHello = new DogSayHello();
        dogSayHello.sayGeneric(new CatSayHello());

        new CatSayHello().sayHello();

        SayHello say2 = ()-> System.out.println("ServletTest.main.lambda");
        say2.sayHello();

    }
}
